//
//  NSString+Extend.h
//  MexicoLoan
//
//  Created by WXP on 2025/2/26.
//

#import <Foundation/Foundation.h>

NS_ASSUME_NONNULL_BEGIN

@interface NSString (Extend)

#pragma mark - 去掉字符串首尾的空格
- (NSString *)removeHeadAndTailSpace;

#pragma mark - 是否只包含空格
- (BOOL) isOnlyBlankSpace;

#pragma mark - 不同颜色
- (NSMutableAttributedString *)setDifferentColorWithMarkStr:(NSString *)markStr lineSpacing:(CGFloat)lineSpacing alignment:(NSInteger)alignment color:(UIColor *)color;

#pragma mark - 文字+图片
- (NSMutableAttributedString *)setImageName:(NSString *)imageName imageRect:(CGRect)rect withIndex:(NSUInteger)index;


@end

NS_ASSUME_NONNULL_END
